clc;
clear all;
clear classes;
close all;

% import the necessary classes
addpath libsvm/windows/;
addpath libsvm/matlab/;
import MatlabToTikZ.*;
import PeopleCounters.*;

global bPrintDebugInformation;
global tFileID;

% print the debug information
bPrintDebugInformation	= true;
tFileID					= fopen('~/Downloads/occupancylog.txt', 'w');

% load and process the raw data
aafRawData							= load('~/Downloads/data.txt');
[aiEstimatedClasses, iEndingTime]	= PeopleCounters.ProcessEvents(aafRawData, 0);

aiEstimatedClasses
% plot the results
figure(1)
plot( [0; cumsum( aiEstimatedClasses )] );

